package com.pan.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Schema(description = "用户信息类")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(description = "编号", example = "1")
    private Integer id;
    @Schema(description = "姓名", example = "猪猪侠")
    private String name;
    @Schema(description = "用户名", example = "zhu666")
    private String username;
    @Schema(description = "密码", example = "aa123")
    private String password;
    @Schema(description = "性别", example = "女")
    private String sex;
    @Schema(description = "年龄", example = "17")
    private Integer age;
    @Schema(description = "地址", example = "日本")
    private String address;
    @Schema(description = "邮箱号", example = "178293189@163.com")
    private String email;
    @Schema(description = "判断是否为管理员，‘1’表示是，‘0’表示不是", example = "1")
    private Integer isadmin;
    @Schema(description = "部门编号，与部门名称相匹配", example = "1")
    private Integer deptno;
    @Schema(description = "岗位", example = "研发")
    private String position;
    //逻辑删除
    @TableLogic
    @Schema(description = "逻辑删除标识 ‘1’表示未删除 ‘0’表示已删除", example = "1")
    private Integer delete;
}
